﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace store.Areas.Admin.Models
{
    public class CreateProductModel
    {
        public int ProductID { get; set; }
        [Required(ErrorMessage = "Chọn danh mục sản phẩm.")]
        public int CategoryID { get; set; }
        public string ProductCode { get; set; }
        [Required(ErrorMessage = "Nhập tên sản phẩm")]
        [StringLength(100, MinimumLength = 2)]
        public string ProductName { get; set; }
        public string ShortDesciption { get; set; }
        public string DetailDescription { get; set; }
        public decimal UnitPrice { get; set; }
        public decimal OldPrice { get; set; }
        public Nullable<double> Sales { get; set; }
        public string Color { get; set; }
        public string Picture { get; set; }
        public string Size { get; set; }
        public bool Active { get; set; }
        public Nullable<System.DateTime> ModifiedDate { get; set; }
        public string OptionSubmit { get; set; }
    }

    public class EditProductModel
    {
        public int ProductID { get; set; }
        [Required(ErrorMessage = "Chọn danh mục sản phẩm.")]
        public int CategoryID { get; set; }
        public string ProductCode { get; set; }
        [Required(ErrorMessage = "Nhập tên sản phẩm")]
        [StringLength(100, MinimumLength = 2)]
        public string ProductName { get; set; }
        public string ShortDesciption { get; set; }
        public string DetailDescription { get; set; }
        public decimal UnitPrice { get; set; }
        public decimal OldPrice { get; set; }
        public Nullable<double> Sales { get; set; }
        public string Color { get; set; }
        public string Picture { get; set; }
        public string Size { get; set; }
        public bool Active { get; set; }
        public Nullable<System.DateTime> ModifiedDate { get; set; }
        public string OptionSubmit { get; set; }
    }

}